<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>layui</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="stylesheet" href="../lib/layui-v2.6.3/css/layui.css" media="all">
    <link rel="stylesheet" href="../css/public.css" media="all">
    <script src="../js/lay-module/http/http.js"></script>
</head>
<body onload="verifyToken()">
<div class="layuimini-container">
    <div class="layuimini-main">

        <table class="layui-hide" id="currentTableId" lay-filter="currentTableFilter"></table>

    </div>
</div>
<script src="../lib/layui-v2.6.3/layui.js" charset="utf-8"></script>
<script>
    layui.use(['form', 'table'], function () {
        var $ = layui.jquery,
            form = layui.form,
            table = layui.table;

        table.render({
            elem: '#currentTableId',
            url: $api + '/risk/tb-task/findList',
            headers: {
                'Authorization': layui.data('table')['Authorization']
            },
            defaultToolbar: ['filter', 'exports', 'print', {
                title: '提示',
                layEvent: 'LAYTABLE_TIPS',
                icon: 'layui-icon-tips'
            }],
            cols: [[
                {type: "numbers" , width: 50},
                {field: 'userName', title: '用户名', sort: true, align: "center",height: 100},
                {field: 'examScore', title: '考试得分', sort: true, align: "center",height: 100},
                {field: 'aviScore', title: '视频得分', sort: true, align: "center",height: 100},
                {field: 'fileScore', title: '文件得分', sort: true, align: "center",height: 100},
              /*  {field: 'rtState', title: '角色', align: "center"},
                {title: '操作', minWidth: 150, toolbar: '#currentTableBar', align: "center"}*/
            ]],
            // limits: [10, 15, 20, 25, 50, 100],
            // limit: 15,
            page: false,
            skin: 'line',
            done: function (res) {
                identifyCode(res);

                if(res.code != 0){
                    layer.msg(res.message)
                }
            }
        });

    });
</script>

</body>
</html>